﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PdfOrmGen
{
    class Program
    {
        static void Main(string[] args)
        {
            var argList = args.ToList();
            if (argList.Count == 1 && (argList.Contains("/?") || argList.Contains("/q"))
                    || argList.Count == 0)
                Console.WriteLine("Usage -- /output for output location, /source for source, /class for classname, /q or /? for this message");
            else
            {
                var outputLocation = argList[argList.IndexOf("/output") + 1];
                var sourceLocation = argList[argList.IndexOf("/source") + 1];
                var className = argList[argList.IndexOf("/class") + 1];
                PdfMapper.CreateMapping(sourceLocation, className, outputLocation);
            }
        }
    }
}
